from django.db import models

# Create your models here.

class Sentence(models.Model):
    #id
    sentenceId = models.AutoField(primary_key=True)
    #用户id
    creatorId = models.CharField('用户ID', max_length=255)
    #创建时间
    createDate = models.DateTimeField('创建时间', auto_now_add=True)
    #句子内容文本
    sentenceContent = models.TextField('文本内容', max_length=500)
    #句子结构图路径
    structureSrc = models.CharField('图片路径', max_length=255)
    #句子所有单词
    wordList = models.CharField('单词', max_length=500)
    #单词释义文本
    wordListDictText = models.CharField('单词和释义', max_length=1000)